#include <iostream>
using namespace std;
#include "EmployeeClass.h"
#include "DateClass.h"

int main(int argc, char** argv) {
	
	cout << "Number of employee before construct: " << Employee::countPublic << "\n";
	
	Employee *e1Ptr = new Employee("Suan", "baker");
	Employee *e2Ptr = new Employee("Sherlock", "Holmes");
	
	cout << "Number of employee after construct: " << e1Ptr->countPublic;
	
	cout << "\nEmployee1: ";
	e1Ptr->print();
	cout << "\nEmployee2: ";
	e2Ptr->print();
	
	cout << "Before release e1Ptr = " << e1Ptr << "\n";
	cout << "Before release e2Ptr = " << e2Ptr << "\n"; 
	delete e1Ptr;
	e1Ptr = NULL;
	delete e2Ptr;
	e2Ptr = 0;
	
	cout << "After release e1Ptr = " << e1Ptr << "\n";
	cout << "After release e2Ptr = " << e2Ptr << "\n"; 
	
	
	cout << "Number of employee after destruct: " << Employee::countPublic;
	return 0;
}
